import getpass

from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://github.com/login')
username_input = driver.find_element_by_name('login')
username = input('Username: ')
username_input.send_keys(username)
password_input = driver.find_element_by_name('password')
password = getpass.getpass()
password_input.send_keys(password)
login_button = driver.find_element_by_name('commit')
login_button.click()
print(driver.get_cookies())
